﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TaiLieu;
using System.Text.RegularExpressions;

public partial class search : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnSearch_Click(object sender, EventArgs e)
    {
        string str = ConvertType.ChuyenDoiCoDauSangKhongDau_ChuyenKhoangTrangSangKiTuKhac(Regex.Replace(this.Text1.Value.Trim(), "<[^>]*(>|$)", string.Empty).Replace("     ", " ").Replace("    ", " ").Replace("   ", " ").Replace("  ", " "), "-");
        if (str == "") return;
        Sessions.search = str;
        Response.Redirect("default.aspx?/search/ket-qua-tim-kiem");
    }
}